import request from '@/utils/request'

// 获取调节服务数据列表
export function getRegulationServices(params) {
  return request({
    url: '/regulation-services/',
    method: 'get',
    params
  })
}

// 获取调节服务数据详情
export function getRegulationService(id) {
  return request({
    url: `/regulation-services/${id}`,
    method: 'get'
  })
}

// 创建调节服务数据
export function createRegulationService(data) {
  return request({
    url: '/regulation-services/',
    method: 'post',
    data
  })
}

// 更新调节服务数据
export function updateRegulationService(id, data) {
  return request({
    url: `/regulation-services/${id}`,
    method: 'put',
    data
  })
}

// 删除调节服务数据
export function deleteRegulationService(id) {
  return request({
    url: `/regulation-services/${id}`,
    method: 'delete'
  })
} 